<template>
  <div class="home">
    <el-container>
      <el-header>
        <div>
          校园导览管理端
        </div>
      </el-header>
      <el-container>
        <el-aside width="200px"
          ><el-menu default-active="2" class="el-menu-vertical-demo" router>
            <el-menu-item index="/home/areaList">
              <el-icon><setting /></el-icon>
              <span>学校管理</span>
            </el-menu-item>
          </el-menu></el-aside
        >
        <el-main>
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
import { reactive, toRefs } from "vue";
import Icon from "@/components/Icon.vue";
import Map from "@/components/Map.vue";

// 组件列表
const components = { Icon, Map };

const Data = reactive({
  pointList: [],
});
const { pointList } = toRefs(Data);
const selectIcon = (item) => {
  console.log(item);
};
const handleMarkerClick = (item) => {
  console.log(item);
};
const handleMapClick = (item) => {
  console.log(item);
};
const handleClick = () => {
  console.log(Data.pointList);
  Data.pointList.pop();
};
</script>
